<template>
  <view class="page">
    <UserDate/>
    <view class="tcard flexC">
      <img class="success_img" :src="`${$store.state.baseApi}/bg-header/sign_success.png`" alt="">
      <view class="success_txt">
        住院登记成功
      </view>
      <view class="success_txt success_tig">
        您已成功登记住院，请先完成住院预交金充值，有最新安排医务人员将电话通知您。
      </view>
    </view>
    
    <view class="tcard">
      <view class="title flexR">
        入院申请单
        <view class="tig_status success">
          已登记
        </view>
      </view>
      <view class="tform no-border left">
        <view class="tform-item">
          <view class="label">住院患者：</view>
          <view class="value">王晴晴</view>
        </view>
        <view class="tform-item">
          <view class="label">患者性别：</view>
          <view class="value">男</view>
        </view>
        <!-- <view class="tform-item">
          <view class="label">患者年龄：</view>
          <view class="value">王晴晴</view>
        </view> -->
        <view class="tform-item">
          <view class="label">入院科室：</view>
          <view class="value">门诊内一科</view>
        </view>
        <view class="tform-item">
          <view class="label">入院病区：</view>
          <view class="value">内科中心病区</view>
        </view>
        <view class="tform-item">
          <view class="label">病区位置：</view>
          <view class="value">
            住院楼9楼内科中心病区
            <view class="pst flexC" @click="$router.push('/pages/navInHsp/navInHsp')">
              <img :src="`${$store.state.baseApi}/icon/way.png`" alt="">
              路线
            </view>
          </view>
        </view>
        <view class="tform-item">
          <view class="label">预约时间：</view>
          <view class="value">2024-09-15</view>
        </view>
        <view class="tform-item">
          <view class="label">入院诊断：</view>
          <view class="value">肺部阴影</view>
        </view>
      </view>
    </view>
    
    <view class="btm-btn" @click="toAdvance">
      去住院预交
    </view>
  </view>
</template>

<script>
  import UserDate from '@/components/UserInfo/user-date.vue'
  export default {
    components: {UserDate},
    data() {
      return {
        
      }
    },
    methods: {
      toAdvance() {
        uni.navigateTo({
          url: `./advancePay`
        })
      }
    }
  }
</script>

<style lang="scss" scoped>
.tcard {
  align-items: center;
  .success_img {
    width: 110upx;
    height: 110upx;
  }
  .success_txt {
    font-family: PingFang SC, PingFang SC;
    font-weight: 600;
    font-size: 36upx;
    color: #4ED1AC;
    line-height: 54upx;
    margin-top: 10upx;
    text-align: center;
  }
  .success_tig {
    font-size: 24upx;
    line-height: 32upx;
    padding: 0 70upx;
  }
}
.value {
  flex: 1;
  font-family: PingFang SC, PingFang SC;
  font-weight: 400;
  font-size: 28upx;
  color: rgba(0,0,0,0.7);
  line-height: 44upx;
  position: relative;
  .pst {
    height: 0;
    margin-top: -10upx;
    margin-left: 10px;
    align-items: center;
    float: right;
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
    font-size: 24upx;
    color: #3E81F7;
    line-height: 44upx;
    margin-right: -8upx;
    >img {
      width: 32upx;
      height: 32upx;
    }
  }
}
.title {
  justify-content: space-between;
}
</style>
